const tokenKey = 'geek_pc_token'

// 1、保存token
export const setToken = (value) => localStorage.setItem(tokenKey, value)

// 2、获取token
export const getToken = () => localStorage.getItem(tokenKey)

// 3、删除token
export const removeToken = () => localStorage.removeItem(tokenKey)

// 4、判断token是否存在
export const hasToken = () => !!localStorage.getItem(tokenKey)
